#ifndef __COLOR_H
#define __COLOR_H


#include "stm32f10x.h"  
#include "delay.h"
#include <stdio.h>
#include <stm32f10x_rcc.h>
#include <stm32f10x_i2c.h>
#include <stm32f10x_gpio.h>
#include "sw_i2c.h"
#include "gw_grayscale_sensor.h"

void sw_i2c_init(void);
void sda_out(uint8_t bit, void *user_data);
uint8_t sda_in(void *user_data);
void scl_out(uint8_t bit, void *user_data);
uint8_t i2c_scan(sw_i2c_interface_t *i2c_interface, uint8_t *scan_addr);
void color_init(void);

#endif

